<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page session="false"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>TOP PITCH - Profile Edit</title>
<link href="resources/css/common.css" rel="stylesheet" type="text/css" />
<link href="resources/css/student/register.css" rel="stylesheet"
	type="text/css" />
<script type="text/javascript" src="resources/jss/jquery-1.7.2.min.js" ></script>
<script type="text/javascript" src="resources/jss/ajaxfileupload.js" ></script>
<script type="text/javascript" src="resources/jss/student/register.js" ></script>
</head>
<body>
	<div class="main">
		<jsp:include page="../header.inc.jsp"></jsp:include>
			<div class="center">
				<div>
					<div class="subtitle">Apply Below:</div>
					<table>
						<tr>
							<td class="textinputbox">
								<table>
									<tr>
										<td class="label2">First Name</td>
										<td><input id="firstNameInput" type="text" class="textinput" value="${ student.firstName }" /></td>
									</tr>
									<tr>
										<td class="label2">Last Name</td>
										<td><input id="lastNameInput" type="text" class="textinput" value="${ student.lastName }" /></td>
									</tr>
									<tr>
										<td class="label2">Email</td>
										<c:choose>
											<c:when test="${ register }">
												<td><input id="emailInput" type="text" class="textinput" value="${ student.email }" /></td>
											</c:when>
											<c:otherwise>
												<td>
												<input readonly type="text" class="textinput" value="${ student.email }" />
												<input id="emailInput" type="hidden" class="textinput" value="${ student.email }" />
												</td>
											</c:otherwise>
										</c:choose>
									</tr>
									<tr>
										<td class="label2">Please enter your password</td>
										<td><input id="passwordInput" type="password" class="textinput" value="${ student.password }" /></td>
									</tr>
									<tr>
										<td class="label2">Please re-enter your password</td>
										<td><input id="passwordConfirmInput" type="password" class="textinput" value="${ student.password }" /></td>
									</tr>
									<tr>
										<td class="label2">What college did you attend?</td>
										<td><input id="collegeInput" type="text" class="textinput" value="${ student.college }" /></td>
									</tr>
									<tr>
										<td class="label2">Graduate School:</td>
										<td><input id="graduateSchoolInput" type="text" class="textinput" value="${ student.graduateSchool }" /></td>
									</tr>
									<tr>
										<td class="label2">Year of Graduation:</td>
										<td><input id="yearOfGraduationInput" type="text" class="textinput" value="${ student.yearOfGraduation }" /></td>
									</tr>
									<tr>
										<td class="label2">Roles of Interest:</td>
										<td><select id="roleOfInterestInput" class="selectinput">
												<option value="Full-Time">Full-Time</option>
												<option value="Internship">Internship</option>
										</select>
										<input type="hidden" id="roleOfInterestInputCurrent" value="${ student.roleOfInterest }" />
										</td>
									</tr>
									<tr>
										<td class="label2">Location Preference:</td>
										<td><input id="locationPreferenceInput" type="text" class="textinput" value="${ student.locationPreference }" /></td>
									</tr>
									<tr>
										<td class="label2">Current Employer:</td>
										<td><input id="currentEmployerInput" type="text" class="textinput" value="${ student.currentEmployer }" /></td>
									</tr>
									<tr>
										<td class="label2">Job Title:</td>
										<td><input id="jobTitleInput" type="text" class="textinput" value="${ student.jobTitle }" /></td>
									</tr>
									<tr>
										<td class="label2">Former Employer(s):</td>
										<td><input id="formerEmployerInput" type="text" class="textinput" value="${ student.formerEmployer }" /></td>
									</tr>
									<tr>
										<td class="label2">Employer industry:</td>
										<td><select id="employerIndustryInput" class="selectinput">
												<option value="">Please select a sector</option>
												<optgroup label="Investment Professional">
													<option value="Hedge Fund">Hedge Fund</option>
													<option value="Private Equity">Private Equity</option>
													<option value="Venture Capital">Venture Capital</option>
													<option value="Mutual Fund">Mutual Fund</option>
													<option value="Other Investment Professional">Other Investment Professional</option>
												</optgroup>
												<optgroup label="Retail Investor">
													<option value="Medicine">Medicine</option>
													<option value="Law">Law</option>
													<option value="Business">Business</option>
													<option value="Retail">Retail</option>
												</optgroup>
										</select>
										
										<input type="hidden" id="employerIndustryInputCurrent" value="${ student.employerIndustry }" />
										</td>
									</tr>
									<tr>
										<td rowspan="5" class="label2" style="vertical-align: top;">Career Interest:</td>
										<td>
											<input id="careerInterestsInput1" type="checkbox" value="Hedge Funds" />Hedge Funds
										</td>
									</tr>
									<tr>
										<td>
											<input id="careerInterestsInput2" type="checkbox" value="Mutual Funds" />Mutual Funds
										</td>
									</tr>
									<tr>
										<td>
											<input id="careerInterestsInput3" type="checkbox" value="Asset Management" />Asset Management
										</td>
									</tr>
									<tr>
										<td>
											<input id="careerInterestsInput4" type="checkbox" value="Others" />Others
										</td>
									</tr>
									<tr>
										<td>
											<input id="careerInterestsInput4OtherText" class="textinput" type="text" value="" />
											<c:forEach var="carInt" items="${ student.careerInterests }">
											<script type="text/javascript">
												initCareerInterest("${ carInt.careerInterest }");
											</script>
											</c:forEach>
										</td>
									</tr>
									<tr>
										<td class="label2">Profile availability:</td>
										<td><select id="availabilityInput" class="selectinput">
											<option value="Public">Public</option>
											<option value="Only for HFs">Only for funds</option>
											<option value="Not be seen">Not be seen</option>
										</select>
										
										<input type="hidden" id="availabilityInputCurrent" value="${ student.availability }" />
										</td>
									</tr>
								</table>
							</td>
							<td class="photouploadbox">
									<div class="photo">
										<img id="registerPhotoImg" alt="" src="photo/${ student.photoId }" />
									</div>
									<div>
										<input id="uploadPhotoInput" name="uploadPhotoInput" type="file" />
										<br/>
										<input id="photoIdInput" type="hidden" value="${ student.photoId }"/>
										<input id="uploadFileButton" type="button" class="button" value="Upload Photo" />
									</div>
							</td>
						</tr>
					</table>

				</div>
				<div>
					<div class="subtitle">Briefly tell us about your investing background</div>
					<textarea id="investingBackgroundInput" rows="5" cols="40" class="textareainput">${ student.investingBackground }</textarea>
				</div>
				<div>
					<div class="subtitle">Upload CV (Optional, but will expedite admissions
						process)</div> <input id="uploadCVInput" name="uploadCVInput" type="file" />
					<input id="cvIdInput" name="cvIdInput" type="hidden" value="${ student.cvId }"/>
					<input id="cvFileNameInput" name="cvFileNameInput" type="hidden" value="${ student.cvFileName }"/>
				</div>
				<div>
					<input id="submitButton" type="button" class="button" value="Submit" />
				</div>
			</div>
		<jsp:include page="../footer.inc.jsp"></jsp:include>
	</div>
		<jsp:include page="../copyright.inc.jsp"></jsp:include>
</body>
</html>
